package cn.myjerry.sort.col;

import java.util.TreeMap;

public class treeMapDemo2 {
	public static void main(String[] args) {
		Worker w1 = new Worker("工人", 8000);
		Worker w2 = new Worker("老师", 10000);
		Worker w3 = new Worker("程序员", 5000);	
		TreeMap<Worker, String> employees = new TreeMap<Worker, String>();
		employees.put(w1, "Jerry");
		employees.put(w2, "Jerry");
		employees.put(w3, "Jerry");
		System.out.println(employees.keySet());
	}
}
